# $Id$
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: jose <jose1711 [at] gmail (dot) com>

pkgname=libdmtx
pkgver=0.7.4
pkgrel=6
pkgdesc="A software for reading and writing Data Matrix 2D barcodes"
url="https://libdmtx.sourceforge.net/"
arch=(i686 x86_64)
license=(GPL2)
depends=(glibc)
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('d3a4c0becd92895eb606dbdb78b023e2')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
